package cn.ming.wfchat.app.viewholder;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import cn.ming.wfchat.app.me.activity.RedPageActivity;
import cn.ming.wfchat.kit.R;
import cn.ming.wfchat.kit.annotation.ExtContextMenuItem;
import cn.ming.wfchat.kit.conversation.ext.core.ConversationExt;
import cn.wildfirechat.model.Conversation;

//转账
public class RedPageExt extends ConversationExt {

    /**
     * @param containerView 扩展view的container
     * @param conversation
     */
    @ExtContextMenuItem
    public void sendRedpage(View containerView, Conversation conversation) {
        Intent intent = new Intent(activity, RedPageActivity.class);
        intent.putExtra("toTarget", conversation.target);
        startActivity(intent);
    }

    @Override
    public int priority() {
        return 100;
    }

    @Override
    public int iconResId() {
        return R.mipmap.ic_red_page;
    }

    @Override
    public String title(Context context) {
        return "红包";
    }

    @Override
    public String contextMenuTitle(Context context, String tag) {
        return title(context);
    }
}
